﻿using System;
using System.Data.Entity;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using ASC.DB;

namespace ASC.Models
{

    public class ModuleModel
    {
        public Module Module { get; set; }
        public List<Channel> Channels { get; set; }
        public List<ModuleTypeParameter> Parameters { get; set; }
        public List<ModuleType_ChannelType> ModuleTypeChannels { get; set; }
        public List<ModuleType> ModuleTypes { get; set; }
        public List<Module_Channel> Module_Channels { get; set; }
        public List<ChannelType> ChannelTypes { get; set; }
     

    }

    public class Param
    {
        public int Nr { get; set; }
        public string Name { get; set; }
        public float Value { get; set; }
        public string Unit { get; set; }
    }

    public class Channel_Nr_Id
    {
        public int Nr { get; set; }
        public int Channel_Id { get; set; }
    }
}

namespace ASC.DB
{
    [MetadataType(typeof(ModuleMetadata))]
    public partial class Module
    {
        public class ModuleMetadata
        {
            [Required]
            public string Name { get; set; }
        }
    }


}
